<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<link rel="stylesheet" href="lib/layui/css/layui.css">
<script type="text/javascript" src="lib/layui/layui.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="css/font.css" />
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>开药</title>
</head>
<script type="text/javascript">
	
</script>
<style type="text/css">
#bid {
	width: 80% px;
	height: 100px;
}
</style>
<body>
	<div>
		<form>
			<table class="table table-striped">
			<h1>药单数据：病人${rname}</h1>
				<tr>
					<td>药品名称</td>
					<td>药品单价</td>
					<td>药品数量</td>
					<td>每天用量</td>
					<td>付款方式</td>
				</tr>
				<c:forEach items="${list2}" var="l" varStatus="status">
					<tr>
						<td>${l.drname}</td>
						<td>${l.drprice}</td>
						<td>${numId[status.index]}</td>
						<td>${usageList[status.index]}</td>
					</tr>
				</c:forEach>
				<tr>
				<td></td>
				<td></td>
				<td></td>
					<td><button type="button" class="btn btn-danger">总计${zongjia}元</button></td>
			         <td><a href="weixin.do?msg1=${zongjia}"><button type="button" class="btn btn-success">微信付款</button></a>
			         <a href="zhifubao.do?msg1=${zongjia}"><button type="button" class="btn btn-success">支付宝付款</button></a>
			         </td>		
				</tr>
				<tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td class="info">医生名称：${name}</td>
				</tr>
			</table>
		</form>
	</div>

</body>
</html>